package com.lovegu.basic;

/**
 * @author 老顾
 * @title: DoWhileLoop
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/20 15:27
 */
public class DoWhileLoop {
    public static void main(String[] args) {
        int result = 0, i = 1;
        do {
            result += i;
            i++;
        } while (i <= 100);
        System.out.println("result=" + result);
    }
}
